
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="recInfo" cellspacing="1">
	<tr>
		<td colspan="9" class="t_bar">基本信息</td>
	</tr>
	<tr>
		<td width="120px" nowrap align="right">姓名：</td>
		<td width="300px" colspan='4'>
		    <span id="recommend_zh_name" name="recommend/zh_name"> 
			   <x:out select="$xmlData/data/recommend/zh_name" />&nbsp;
		    </span>
		</td>
		<td width="120px" nowrap align="right">性别：</td>
		<td width="300px" colspan='2'>
		     <span id="recommend_gender_value" name="recommend/gender_value"> 
			   <x:out select="$xmlData/data/recommend/gender_value" />&nbsp;
		    </span>
		</td>
		<td rowspan="4" width="130px" align="center">
		<div id="file8" style="text-align:center">
		       <c:set var="file_code9"><x:out select="$xmlData/data/content/file_code9" /></c:set>
		       <c:choose>
		          <c:when test="${file_code9==''}">
		               <img id="recphotoImg" src="/egrantres_nanshan/images/app/photo_01.jpg"  style="width:130px;height:159px" />
		           </c:when>
		           <c:otherwise>
		               <img id="recphotoImg" src="${ctx}/file/ajax-filedownload?fileCode=<x:out select="$xmlData/data/content/file_code9" />"  
		               style="width:130px;height:159px" />
		           </c:otherwise>
		       </c:choose>
		   </div>
		</td>
	</tr>
	<tr>
	    <td nowrap align="right">学号：</td>
		<td colspan='4'>
		    <input id="stu_no" name="recommend/stu_no" size="35" maxlength="50"  class="input_css" 
		           label ="学号" 
		           onchange="abc();"
		           value="<x:out select="$xmlData/data/recommend/stu_no" />"/>
		</td>
		<td nowrap align="right"><span class="color_red">*</span>专业：</td>
		<td colspan='2'>
		    <input id="recommend_major" name="recommend/major" size="35" maxlength="50"  class="required input_css" 
		           label ="所学专业"  maxlength="50" onchange="synTextData(this.id,'yifang_major1')"
		           value="<x:out select="$xmlData/data/recommend/major" />"/>
		</td>
	</tr>
	<tr>
	<!-- 
	    <td nowrap align="right"><span class="color_red">*</span>研究方向：</td>
		<td colspan='4'>
		    <input name="recommend/specialty" size="35" maxlength="50"  class="required input_css" 
		           label ="研究方向"
		           value="<x:out select="$xmlData/data/recommend/specialty" />"/>
		</td>
	 -->
	    <td nowrap align="right"><span class="color_red">*</span>学历：</td>
	    <c:set var="educate"><x:out select='$xmlData/data/recommend/educate_value' /></c:set>
		<td colspan='4'>
		    <cpt:select key="rcsxEducate" id="educate" onChange="initControlValue(this.id);setAllowance(this)" value="${educate}" /> 
		    <input id="educate_value" name="recommend/educate_value" type="hidden"
		           value="${educate}"  class="required" label="学历">
		    <input id="educate_name" name="recommend/educate_name" type="hidden"
				   value="<x:out select='$xmlData/data/recommend/educate_name' />">
	
		</td>
		<td nowrap align="right"><span class="color_red">*</span>学位：</td>
		<c:set var="degreevalue">
			 <x:out select='$xmlData/data/recommend/degree_value' />
		</c:set>
		<td colspan='2'>
			<cpt:select key="degree" id="degree"
						onChange="initControlValue(this.id);" value="${degreevalue}" />
			<input id="degree_value" name="recommend/degree_value" type="hidden"
				   value="${degreevalue}" class="required" label="学位">
			<input id="degree_name" name="recommend/degree_name" type="hidden"
				   value="<x:out select='$xmlData/data/recommend/degree_name' />">	   
		</td>
	</tr>
	<tr>
		
		<td nowrap align="right"><span class="color_red">*</span>证件号码：</td>
		<td colspan='4'>
		    <span id="recommend_card_id" name="recommend/card_id"> 
			   <x:out select="$xmlData/data/recommend/card_id" />&nbsp;
		    </span>
		</td>
		 <td nowrap align="right">联系电话：</td>
		<td colspan='2'>   
		    <span id="recommend_tel_work" name="recommend/contact_tel"> 
			   <x:out select="$xmlData/data/recommend/contact_tel" />&nbsp;
		    </span>
		</td>
	</tr>
	<tr>
	
	
	<td nowrap align="right"><span class="color_red">*</span>入校时间：</td>
		<c:set var="begin_date">
			 <x:out select='$xmlData/data/recommend/begin_date' />
		</c:set>
		<td colspan='4'>
		    <cpt:date id="begin_date" name="recommend/begin_date"  className="required date dateCompare:graduate_date"
					label="入校时间" value="${begin_date}"></cpt:date>
		</td>
		
		<td nowrap align="right"><span class="color_red">*</span>毕业时间：</td>
		<c:set var="graduate_date">
			 <x:out select='$xmlData/data/recommend/graduate_date' />
		</c:set>
		<td colspan='3'>
		    <cpt:date id="graduate_date" name="recommend/graduate_date"  className="required date "
					label="毕业时间" value="${graduate_date}"></cpt:date>
		</td>
		
	</tr>
	<tr>
	<td nowrap align="right"><span class="color_red">*</span>学校名称：</td>
		<td colspan='4'>
		    <input id='recommend_school_name' name="recommend/school_name" size="35" maxlength="50"  class="required input_css" 
		           label ="学校名称"  onchange="synTextData1(this.id,'yifang_school','recommend_college_name')"
		           value="<x:out select="$xmlData/data/recommend/school_name" />"/>
		</td>
		<td nowrap align="right"><span class="color_red">*</span>院（系）名称：</td>
		<td colspan='3'>
		    <input id="recommend_college_name" name="recommend/college_name" size="35" maxlength="50"  class="required input_css" 
		           label ="院（系）名称"  onchange="synTextData1('recommend_school_name','yifang_school',this.id)"
		           value="<x:out select="$xmlData/data/recommend/college_name" />"/>
		 </td>

	</tr>	
	<tr>
	 
		<td nowrap align="right">地址：</td>
		<td colspan='8'>
		    <span id="recommend_address" name="recommend/xy_address"> 
			   <x:out select="$xmlData/data/recommend/xy_address" />&nbsp;
		    </span>
		</td>  
	</tr>
</table>
<br>
<table class="t_css" width="100%" border="0" cellpadding="0" id="recInfo2" cellspacing="1">
	<tr>
		<td colspan="9" class="t_bar"><span class="color_red">*</span>所在院系推荐意见（限500字以内）</td>
	</tr>
	<tr>
	    <td colspan='9'>
	    <textarea rows="15" cols="170" class="input_textarea required  maxlength:500"   name='recommend/recommend'  label="所在院系推荐意见"><x:out select="$xmlData/data/recommend/recommend" /></textarea>
	    <input type="hidden" name="recommend/recommend_hidden" value="">
	    </td>
	</tr>
</table>
<script type="text/javascript">
	$(function() {
		$("#recInfo tr:even").addClass("li_1");
		$("#recInfo tr:odd").addClass("li_2");
		$("#recInfo2 tr:even").addClass("li_1");
		$("#recInfo2 tr:odd").addClass("li_2");
	});
	//博士生1200元每月、硕士生1000元每月、本科生800元每月
	function setAllowance(obj){
		if(obj.value=='1117'){
			$("span[name$='allowance']").text("800");
		}else if(obj.value=='1116'){
			$("span[name$='allowance']").text("1000");
		}else if(obj.value=='1115'){
			$("span[name$='allowance']").text("1200");
		}else{
			$("span[name$='allowance']").text("0");
		}
	}
	function synTextData(id1,id2){
		$('#'+id2).text($('#'+id1).val());
	}
	function synTextData1(id1,id2,id3){
		$('#'+id2).text("学校名称："+$('#'+id1).val()+"，院（系）名称："+$('#'+id3).val());
	}
	function abc(){
		var aa =$("#stu_no").val();
		if(!/^[0-9a-zA-Z]+$/.test(aa)){
			$("#stu_no").val('');
		}
	}
</script>
